<#include "public.ftl">
API = {
<#assign apiDataMapKeySet= apiDataMap?keys>
<#list apiDataMapKeySet as key>
    /**
     * ${apiDataMap[key][0].group}
     * */
    ${key}: {
    <#list apiDataMap[key] as apiData>
        /**
         *
         * ${apiData.description}<br/>
         * 参数为以下对象子集:
         * defaultParam = {
         * <#list apiData.parameter.fields.parameter as apiParam>
         *  ${funcs.StringUtils.rightPad(apiParam.field+":null,",18)}//类型:${apiParam.type},<#if apiParam.optional == true>[可选]</#if>${apiParam.description?replace("<p>","")?replace("</p>","")}<br/></#list>
         * }
         * @param param 请求参数
         * @param opts [可选]ajax参数
         * */
        ${apiData.name}: function (param, opts){
            // 一系列逻辑处理(如果有)
            return SDK.${key}.${apiData.name}(param, opts);
        }<#if apiData_has_next>,</#if>
    </#list>
    }<#if key_has_next>,</#if>
</#list>
};